<?php
include_once "index.php";
$db=new DBO ('1705phpa','root','root');
$res=$db->getOnee('new');

?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<center>
<table border="1" >
    <tr bgcolor="aqua">
        <td>地址</td>
        <td>标题</td>
        <td>内容</td>
        <td>操作</td>
    </tr>
    <?php
    foreach ($res as $k=>$v)
    {
       echo "<tr><td>$v[n_id]</td><td>$v[n_title]</td><td>$v[n_desc]</td><td><a href='dele.php'>删除</a>||<a href='updata.php'>修改</a></td></tr>";
    }
    ?>
</table>
</center>
</body>
</html>
